package com.serviceimp;
 
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.entity.Cdtypetbale;
import com.mapper.ICdtypetbaleMapper;
import com.service.ICdtypetbaleService;

@Transactional
public class ICdtypetbaleServiceImp implements ICdtypetbaleService{

	@Autowired
	private ICdtypetbaleMapper cdtypetbaleMapper;
	
	public List<Cdtypetbale> selectCdtypetbale() {
		
		List<Cdtypetbale> list=cdtypetbaleMapper.selectCdtypetbale();
		
		return list;
		
	}  

	public Cdtypetbale queryCdtypetbale(Cdtypetbale cdtypetbale) {
		
		Cdtypetbale cdtypetbale1=cdtypetbaleMapper.queryCdtypetbale(cdtypetbale);
		
		return cdtypetbale1;
		
	}

	public int insertCdtypetbale(Cdtypetbale cdtypetbale) {
		
		int i=cdtypetbaleMapper.insertCdtypetbale(cdtypetbale);
		
		return i;
		
	}

	public int updateCdtypetbale(Cdtypetbale cdtypetbale) {
		
		int i=cdtypetbaleMapper.updateCdtypetbale(cdtypetbale);
		
		return i;
		
	}

	public int deleteCdtypetbale(Cdtypetbale cdtypetbale) {
		
		int i=cdtypetbaleMapper.deleteCdtypetbale(cdtypetbale);
		
		return i;
		
	}

}
